package com.homework.reflect.bean;

import java.time.LocalDateTime;
import java.util.Random;

/**
 * @author nmm
 * @date 2024-03-2024/3/25
 * @deriction njm......
 */
public class Student {

    private String name;
    private  int age;
    private  String sex;
    private LocalDateTime stuDate;//入学时间
    private  String address;
    private  Double weight;
    private  Double score;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDateTime getStuDate() {
        return stuDate;
    }

    public void setStuDate(LocalDateTime stuDate) {
        this.stuDate = stuDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }


    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", stuDate=" + stuDate +
                ", address='" + address + '\'' +
                ", weight=" + weight +
                ", score=" + score +
                '}';
    }

    public Student() {
    }

    public void study(String name) {
        System.out.println(name+"正在学习中............");
    }



    Random random=new Random();
    private int study(String address,Double hour) {
        System.out.println( name+"在"+address+"学习了"+hour+"小时");
        return  random.nextInt(101);
    }


    private void talkAbout(String stu1,String stu2,String subject) {
        System.out.println(stu1+"和"+stu2+"正在讨论有关"+subject+"的学习");
    }


    private void  mystudy(String name,long hours) {
         System.out.println(name+"学习了"+hours+"小时");
     }


    public Student(String name, int age, String sex, LocalDateTime stuDate, String address) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.stuDate = stuDate;
        this.address = address;
    }

    public Student(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public Student(String name, Double score) {
        this.name = name;
        this.score = score;
    }


    public Student(String name, int age,Double score) {
        this.name = name;
        this.age=age;
        this.score = score;
    }


}
